using System;

namespace qip_history_synchronizer.Pop3
{
    /// <summary>
    /// Holds POP3 message info.
    /// </summary>
    public class POP3_MessageInfo
    {
        private string m_MessageID   = "";
        private int    m_MessageNo   = 0;
        private long   m_MessageSize = 0;
		
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="messageID">Message unique ID.</param>
        /// <param name="messageNo">Message number.</param>
        /// <param name="messageSize">Message size in bytes.</param>
        public POP3_MessageInfo(string messageID,int messageNo,long messageSize)
        {	
            m_MessageID   = messageID;
            m_MessageNo   = messageNo;
            m_MessageSize = messageSize;
        }

        #region Properties Implementation
        		
        /// <summary>
        /// Gets message unique ID returned by pop3 server.
        /// </summary>
        public string MessageUID
        {
            get{ return m_MessageID; }
        }

        /// <summary>
        /// Gets message index number in POP3 server.
        /// </summary>
        public int MessageNumber
        {
            get{ return m_MessageNo; }
        }

        /// <summary>
        /// Gets message size in bytes.
        /// </summary>
        public long MessageSize
        {
            get{ return m_MessageSize; }
        }

        #endregion

    }
}